<template>
	<view class="remark">
		<text v-if="row.followRemark" class="follow">{{ row.followRemark }}</text>
		<text v-if="row.saleRemark" class="sale">{{ row.saleRemark }}</text>
		<text class="view-follow" @click="go">查看跟进</text>
	</view>
</template>

<script setup lang="ts">
const props: any = defineProps<{ row: any; type: string }>();
import { navTo } from '@/common/utils';
defineEmits(['showCustomerFollowUp']);

const go = () => {
	navTo({
		url: '/pages/followup/detail',
		_params: {
			row: JSON.stringify({
				customerId: props.row.customerId,
				orderId: props.row.orderId,
				typeCode: props.type
			})
		}
	} as any);
};
</script>

<style scoped>
.remark {
	font-size: 24rpx;
	color: #666;
	margin: 12rpx 0;
}
.follow,
.sale {
	display: block;
	margin: 4rpx 0;
	line-height: 1.4;
}
.view-follow {
	color: #007aff;
	font-size: 26rpx;
	margin-top: 8rpx;
}
</style>
